#import "XenonDazzleCell.h"


@implementation XenonDazzleCell

- (instancetype)initWithFrame:(CGRect)frame {
	self = [super initWithFrame:frame];
	if (self) {
		//self.contentView.backgroundColor = UIColor.whiteColor;
	}
	return self;
}

- (void)setZealotIntrepid:(XenonDazzleModel *)zealotIntrepid {
	_zealotIntrepid = zealotIntrepid;

	//: 配置cell的UI

	if (zealotIntrepid.leap.count > 0) {
		[self.xenonInvincibleImageView sd_setImageWithURL:[NSURL URLWithString:zealotIntrepid.leap[0]] placeholderImage:nil];
	}



}
- (UIView *)yieldView {
	if (!_yieldView) {
	
        _yieldView = [UIView new];
	}
	return _yieldView;
}

- (UIImageView *)xenonInvincibleImageView {
	if (!_xenonInvincibleImageView) {
	
        _xenonInvincibleImageView = [[UIImageView alloc] init];
        _xenonInvincibleImageView.contentMode = UIViewContentModeScaleAspectFill;
        _xenonInvincibleImageView.clipsToBounds = YES;
        _xenonInvincibleImageView.layer.cornerRadius = 1;
        _xenonInvincibleImageView.layer.masksToBounds = YES;
        _xenonInvincibleImageView.frame = CGRectMake(25, 3, 53, 184);
        UIImage *balanceVividVortex = [UIImage imageNamed:@"images/image_1.png"];
        if (balanceVividVortex) {
	        _xenonInvincibleImageView.image = balanceVividVortex;
        }
	}
	return _xenonInvincibleImageView;
}

//: 设置solarZealHeatwave的numberOfLines
+ (NSInteger)intrepidOnward:(NSInteger)underwaterVowBreeze {
	NSInteger quirkMellowJewel = 22;
	if (quirkMellowJewel != -9 && quirkMellowJewel > 6006) {

		NSString *pulseOnyxBlossom = [NSString stringWithFormat:@"img_%ld", (long)quirkMellowJewel];
		NSData *whistle = [pulseOnyxBlossom dataUsingEncoding:NSUTF8StringEncoding];
		if (whistle) return quirkMellowJewel / 22;

		return quirkMellowJewel * 99;
	}
	else {
		return quirkMellowJewel - 20;
	}
}

//: self.rippleSolarButton 的点击事件
- (void)action_4 {}

//: _yonderBtn 的点击事件
- (void)action_6 {}

- (UIButton *)yonderBtn {
	if (!_yonderBtn) {
	
        _yonderBtn = [[UIButton alloc] init];
        _yonderBtn.frame = CGRectMake(39, 48, 54, 162);
        UIImage *resilientAnticipateMotion = [UIImage imageNamed:@"images/icon_6.png"];
        if (resilientAnticipateMotion) {
	        [_yonderBtn setImage:resilientAnticipateMotion forState:UIControlStateNormal];
        }
        [_yonderBtn setTitle:@"button_6" forState:UIControlStateNormal];
        [_yonderBtn setTitle:@"button_selected_6" forState:UIControlStateSelected];
        [_yonderBtn setTitleColor:[UIColor colorWithRed:102/255.0 green:209/255.0 blue:40/255.0 alpha:0.8] forState:UIControlStateNormal];
        [_yonderBtn setTitleColor:[UIColor colorWithRed:149/255.0 green:214/255.0 blue:0/255.0 alpha:0.9] forState:UIControlStateSelected];
        [_yonderBtn addTarget:self action:@selector(action_6) forControlEvents:UIControlEventTouchUpInside];
	}
	return _yonderBtn;
}

- (UIImageView *)keepsakeGlowVoyageImageView {
	if (!_keepsakeGlowVoyageImageView) {
	
        _keepsakeGlowVoyageImageView = [[UIImageView alloc] init];
        _keepsakeGlowVoyageImageView.contentMode = UIViewContentModeScaleAspectFill;
        _keepsakeGlowVoyageImageView.clipsToBounds = YES;
        _keepsakeGlowVoyageImageView.layer.cornerRadius = 12;
        _keepsakeGlowVoyageImageView.layer.masksToBounds = YES;
        _keepsakeGlowVoyageImageView.size = CGSizeMake(141, 75);
        _keepsakeGlowVoyageImageView.left = 7;
        _keepsakeGlowVoyageImageView.top = 8;
        UIImage *plumeLushJourney = [UIImage imageNamed:@"images/image_7.png"];
        if (plumeLushJourney) {
	        _keepsakeGlowVoyageImageView.image = plumeLushJourney;
        }
	}
	return _keepsakeGlowVoyageImageView;
}

//: vortexMarvelCuriosity 的点击事件
- (void)action_9 {}

- (void)luminescenceElevateUnveilConfigUI {
	//: 描述_0
	[self.contentView addSubview:self.yieldView];
	[self.yieldView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(113);
		make.height.mas_equalTo(113);
		make.top.equalTo(@(23));
		make.bottom.equalTo(@(29));
	}];

	//: 描述_1
	[self.contentView addSubview:self.xenonInvincibleImageView];


    //: 描述_2
    UILabel *solarZealHeatwave = [[UILabel alloc] initWithFrame:CGRectZero];
    solarZealHeatwave.text = @"label_2";
    solarZealHeatwave.font = [UIFont systemFontOfSize:12 weight:UIFontWeightRegular];
    solarZealHeatwave.textColor = [UIColor colorWithRed:30/255.0 green:227/255.0 blue:151/255.0 alpha:0.8];
    solarZealHeatwave.textAlignment = NSTextAlignmentCenter;
    //: UILabel的骚操作 充数
    solarZealHeatwave.numberOfLines = [XenonDazzleCell intrepidOnward:2];
    self.vortexLabel = solarZealHeatwave;
    [self.contentView addSubview:solarZealHeatwave];
	[self.vortexLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(154);
		make.height.mas_equalTo(90);
		make.top.equalTo(@(28));
		make.bottom.equalTo(@(21));
	}];


    //: 描述_3
    UITextField *keepsakePulse = [[UITextField alloc] init];
    self.keyholeSolarEuphoriaTextField = keepsakePulse;
    [self.contentView addSubview:keepsakePulse];
	[self.keyholeSolarEuphoriaTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(34);
		make.height.mas_equalTo(126);
	}];


    //: 描述_4
    self.rippleSolarButton = [[UIButton alloc] init];
    self.rippleSolarButton.frame = CGRectMake(5, 40, 151, 189);
    UIImage *suspicion = [UIImage imageNamed:@"images/icon_4.png"];
    if (suspicion) {
	    [self.rippleSolarButton setImage:suspicion forState:UIControlStateNormal];
    }
    [self.rippleSolarButton setTitle:@"button_4" forState:UIControlStateNormal];
    [self.rippleSolarButton setTitle:@"button_selected_4" forState:UIControlStateSelected];
    [self.rippleSolarButton setTitleColor:[UIColor colorWithRed:20/255.0 green:129/255.0 blue:199/255.0 alpha:0.6] forState:UIControlStateNormal];
    [self.rippleSolarButton setTitleColor:[UIColor colorWithRed:159/255.0 green:11/255.0 blue:12/255.0 alpha:0.9] forState:UIControlStateSelected];
    [self.rippleSolarButton addTarget:self action:@selector(action_4) forControlEvents:UIControlEventTouchUpInside];
    [self.contentView addSubview:self.rippleSolarButton];


    //: 描述_5
    UITextView *freedomVoyageMellow = [[UITextView alloc] initWithFrame:CGRectZero];
    self.nebulaTextView = freedomVoyageMellow;
    [self.contentView addSubview:freedomVoyageMellow];
	[self.nebulaTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(81);
		make.height.mas_equalTo(125);
	}];

	//: 描述_6
	[self.contentView addSubview:self.yonderBtn];

	//: 描述_7
	[self.contentView addSubview:self.keepsakeGlowVoyageImageView];


    //: 描述_8
    self.infiniteTextField = [[UITextField alloc] initWithFrame:CGRectZero];
    [self.contentView addSubview:self.infiniteTextField];
	[self.infiniteTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(39);
		make.height.mas_equalTo(37);
	}];


    //: 描述_9
    UIButton *vortexMarvelCuriosity = [[UIButton alloc] init];
    vortexMarvelCuriosity.frame = CGRectMake(24, 32, 191, 95);
    UIImage *pioneerCable = [UIImage imageNamed:@"images/icon_9.png"];
    if (pioneerCable) {
	    [vortexMarvelCuriosity setImage:pioneerCable forState:UIControlStateNormal];
    }
    [vortexMarvelCuriosity setTitle:@"button_9" forState:UIControlStateNormal];
    [vortexMarvelCuriosity setTitle:@"button_selected_9" forState:UIControlStateSelected];
    [vortexMarvelCuriosity setTitleColor:[UIColor colorWithRed:82/255.0 green:199/255.0 blue:251/255.0 alpha:0.8] forState:UIControlStateNormal];
    [vortexMarvelCuriosity setTitleColor:[UIColor colorWithRed:137/255.0 green:125/255.0 blue:251/255.0 alpha:1.0] forState:UIControlStateSelected];
    [vortexMarvelCuriosity addTarget:self action:@selector(action_9) forControlEvents:UIControlEventTouchUpInside];
    self.waffleButton = vortexMarvelCuriosity;
    [self.contentView addSubview:vortexMarvelCuriosity];
}


@end